FROM openjdk:8-jdk

MAINTAINER zhouxm

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /test

WORKDIR /test

EXPOSE 8083

ADD ./target/gateway-0.0.1-SNAPSHOT.jar ./

CMD sleep 5;java $JAVA_OPTS -jar gateway-0.0.1-SNAPSHOT.jar
